// fabu/xueyuan/xueyuanCom/mianze/mianze.js
Component({
  /**
   * 组件的属性列表
   */ 
  properties: {
    txt1:{
      type:String,
      value:'发布信息前请先查看'
    },
    txt2:{
      type:String,
      value:'免责声明'
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
     isKnow:true,
      isTap:'none'
  },

  /**
   * 组件的方法列表
   */
  methods: {
    toSubmit:function(event)
    {
      var that=this
      that.setData({
        isKnow:!this.data.isKnow
      })
      if(this.data.isKnow)
      {
        that.setData({
          isTap:'flex'
        })
      }else{
        that.setData({
          isTap:'none'
        })
      }
      var k=this.data.isKnow
      this.triggerEvent('know',{k})
    },
    toMianze:function(event){
       wx.navigateTo({
         url: '../../mianze/mianze',
       })
    }
  }
})
